<?php
    namespace Spider\network;

    use lactone\Core\Object;
    use Spider\Site\zhihu_com;

    class HttpClientWithTask extends Object{

        public  $task = false;

        public function run(){
            if(!$this->task)
                return false;

            //
            $Site = new zhihu_com([
                'task'=>$this->task,
                'CookieDir' =>__DIR__.'/../Data',
            ]);
            if(!$Site->send()){
                //任务执行失败
            }else{
                //任务执行成功

            }

            return;

        }
    }